/**
 * 
 */
package br.com.ufrn.aipetro.ga.domain.entity.manufacturer;

import br.com.ufrn.aipetro.ga.domain.entity.interfaces.AbstractModel;

/**
 * @author Lucas
 *
 */
public class Manufacturer extends AbstractModel {
	
	public static final String ID_TB_MANUFACTURER_PROPERTY = "idTbManufacturer";
	public static final String NAME_PROPERTY = "description";
	
	private Integer idTbManufacturer;
	private String name;
	
	/**
	 * 
	 */
	public Manufacturer() {
	}

	/**
	 * @param name
	 */
	public Manufacturer(String name) {
		this.name = name;
	}

	/**
	 * @return the idTbManufacturer
	 */
	public Integer getIdTbManufacturer() {
		return idTbManufacturer;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param idTbManufacturer the idTbManufacturer to set
	 */
	public void setIdTbManufacturer(Integer idTbManufacturer) {
		Integer oldIdTbManufacturer = this.idTbManufacturer;
		this.idTbManufacturer = idTbManufacturer;
		
		firePropertyChange(ID_TB_MANUFACTURER_PROPERTY, oldIdTbManufacturer, idTbManufacturer);
	}

	/**
	 * @param name the description to set
	 */
	public void setName(String name) {
		String oldName = this.name;
		this.name = name;
		
		firePropertyChange(NAME_PROPERTY, oldName, name);
	}
	
}
